package com.education.admin.api.controller;

import com.education.common.base.BaseController;
import com.education.common.utils.Result;
import com.education.service.system.SystemDictValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 字典管理接口
 * @author 余一
 * @date 2021/9/7  14:52
 */
@RestController
public class DictController extends BaseController {

    @Autowired
    private SystemDictValueService systemDictValueService;

    @GetMapping("/dict/getDictValueByType")
    public Result getDictValueByType(@RequestParam Map params){
        return Result.success(systemDictValueService.getDictValueByType(params));
    }
}
